#include <cstdio>
#include <algorithm>
using namespace std;
int main(void){
    int n;
    while(~scanf("%d",&n)){
        int ans=1;
        for(int i=2;i<=n;i++){
            ans=(ans+1)*2;
        }
        printf("%d\n",ans);
    }
    return 0;
}
